/*
 * @Author: your name
 * @Date: 2020-11-20 13:57:43
 * @LastEditTime: 2020-11-20 14:43:10
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-element-admine:\hjimi\人脸\html\face-recognition\src\api\liveApp.js
 */
let apis = 'apis/api/brake/'
//  ------------------------------------人脸集合-----------------------------
/**
 * @description: //列表
 * @param {current,size,code,name} 
 * @return {type} 
 */
export function deviceStatus(params) { 
    return request({
      url: `${ apis }faceset`,
      method: "get",
      params,
    })
  }
  

/**
 * @description: //新增
 * @param {description,name,code,isDefault(是否将该人脸集合设置为默认人脸集合.默认为false)} 
 * @return {type} 
 */
export function deviceStatus(params) { 
    return request({
      url: `${ apis }faceset`,
      method: "post",
      params,
    })
  }

  
/**
 * @description: //设置默认人脸集合
 * @param {description,name,code,isDefault(是否将该人脸集合设置为默认人脸集合.默认为false)} 
 * @return {type} 
 */
export function deviceStatus(id) { 
    return request({
      url: `${ apis }faceset${id}/default`,
      method: "post",
    })
  }
//  ------------------------------------终端-----------------------------
  /**
 * @description: //列表
 * @param {description,name,code,isDefault(是否将该人脸集合设置为默认人脸集合.默认为false)} 
 * @return {type} 
 */
export function deviceStatus(id) { 
    return request({
      url: `${ apis }terminal`,
      method: "post",
    })
  }